import 'package:flutter/material.dart';

// ignore: must_be_immutable
class MainPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0.0,
        title: Text(
          '大地影院',
          style: TextStyle(color: Colors.white),
        ),
        automaticallyImplyLeading: false,
        backgroundColor: Color(0xFFFF502E),
        centerTitle: true,
      ),
      body: Container(
        padding: const EdgeInsets.all(0.5),
        child: GridView(
          gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
              crossAxisCount: 3,
              mainAxisSpacing: 2.0,
              crossAxisSpacing: 2.0,
              childAspectRatio: 0.8),
          children: <Widget>[
            Image.network(
              'http://img5.mtime.cn/mt/2021/05/20/095433.63004237_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/06/02/143209.21788331_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/05/28/154438.55888452_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/04/14/100352.99938324_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/02/08/152607.91240372_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/03/22/084751.36021529_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/05/20/101203.43227335_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/03/31/083532.87179906_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2020/07/21/153448.87663608_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2020/12/29/115029.15343635_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/03/29/112302.22833044_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/06/08/165332.51721837_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/05/20/095433.63004237_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/04/14/100352.99938324_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            Image.network(
              'http://img5.mtime.cn/mt/2021/02/08/152607.91240372_1280X720X2.jpg',
              fit: BoxFit.cover,
            ),
            FlatButton(
              onPressed: () {
                Navigator.pop(context);
              },
              child: Text(
                "返回",
                style: TextStyle(color: Colors.lightBlue),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
